﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="TrainMode.aspx.cs" Inherits="Train_TrainMode" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
  <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster"
                DataMember="Train_TrainMode">
            </InfoLight:WebDataSource>
            <InfoLight:WebValidate ID="WebValidate1" runat="server" AltRowCss="" DataMember="Train_TrainMode"
                DataSourceID="Master" ForeColor="Red" RowCss=""><Fields>
<InfoLight:ValidateFieldItem FieldName="TId" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="TrainModeName" CheckNull="True"></InfoLight:ValidateFieldItem>
</Fields>
</InfoLight:WebValidate>
 <InfoLight:WebNavigator ID="WebNavigator1" runat="server" BindingObject="wgvMaster"
                Width="100%" StatusStrip="WebStatusStrip1" CssClass="NavigatorBar" 
        CtlHeight="25">
                <NavControls>
                    <InfoLight:ControlItem ControlName="Add" ControlText="穝糤" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/add_C.gif" MouseOverImageUrl="../image/uipics/add2_C.gif"
                        Size="48" disenableimageurl="../Image/UIPics/add3_C.gif"/>
                    <InfoLight:ControlItem ControlName="Apply" ControlText="郎" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/apply_C.gif" MouseOverImageUrl="../image/uipics/apply2_C.gif"
                        Size="48" disenableimageurl="../Image/UIPics/apply3_C.gif"/>
                    <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/abort_C.gif" MouseOverImageUrl="../image/uipics/abort2_C.gif"
                        Size="48" disenableimageurl="../Image/UIPics/abort3_C.gif"/>
                    <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="True"
                        ImageUrl="../image/uipics/query_C.gif" MouseOverImageUrl="../image/uipics/query2_C.gif"
                        Size="48" disenableimageurl="../Image/UIPics/query3_C.gif"/>
                </NavControls>
                <NavStates>
                    <InfoLight:WebNavigatorStateItem StateText="Initial" />
                    <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                    <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                    <InfoLight:WebNavigatorStateItem StateText="Editing" />
                    <InfoLight:WebNavigatorStateItem StateText="Applying" />
                    <InfoLight:WebNavigatorStateItem StateText="Changing" />
                    <InfoLight:WebNavigatorStateItem StateText="Querying" />
                    <InfoLight:WebNavigatorStateItem StateText="Printing" />
                </NavStates>
            </InfoLight:WebNavigator>
            <InfoLight:WebGridView ID="wgvMaster" runat="server" CellPadding="5" DataSourceID="Master"
            ForeColor="#333333" Width="100%" 
        AbortIconUrl="../Image/UIPics/Abort.gif" AddIconUrl="../Image/UIPics/Add.gif"
            ApplyIconUrl="../Image/UIPics/Apply.gif" CancelIconUrl="../Image/UIPics/Cancel.gif"
            MouseOverAbortIconUrl="../Image/UIPics/Abort2.gif" MouseOverAddIconUrl="../Image/UIPics/Add2.gif"
            MouseOverApplyIconUrl="../Image/UIPics/Apply2.gif" MouseOverCancelIconUrl="../Image/UIPics/Cancel2.gif"
            MouseOverOKIconUrl="../Image/UIPics/OK2.gif" MouseOverQueryIconUrl="../Image/UIPics/Query2.gif"
            OKIconUrl="../Image/UIPics/OK.gif" 
        QueryIconUrl="../Image/UIPics/Query.gif" HeaderStyleWrap="False"
            BackColor="White" BorderColor="White" BorderStyle="Groove" 
        BorderWidth="2px">
            <PagerSettings Mode="NumericFirstLast" />
            <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
            <NavControls>
                <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif"
                    ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif"
                    ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif">
                </InfoLight:ControlItem>
                <InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif"
                    ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif">
                </InfoLight:ControlItem>
            </NavControls>
            <RowStyle BackColor="#EFF3FB"></RowStyle>
            <EditRowStyle BackColor="#2461BF"></EditRowStyle>
            <SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>
            <PagerStyle BackColor="LightBlue" ForeColor="White" HorizontalAlign="Center"></PagerStyle>
            <HeaderStyle BackColor="DeepSkyBlue" ForeColor="White" Font-Bold="True"></HeaderStyle>
            <AlternatingRowStyle BackColor="White" BorderColor="White"></AlternatingRowStyle>
            <Columns>
                <asp:TemplateField ShowHeader="False">
                    <edititemtemplate>
<asp:ImageButton id="ImageButton1" runat="server" Text="Update" CausesValidation="True" ImageUrl="~/Image/UIPics/OK.gif" CommandName="Update"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton2" runat="server" Text="Cancel" CausesValidation="False" ImageUrl="~/Image/UIPics/Cancel.gif" CommandName="Cancel"></asp:ImageButton>
</edititemtemplate>
                    <itemtemplate>
<asp:ImageButton id="ImageButton3" runat="server" Text="Edit" CausesValidation="False" ImageUrl="~/Image/UIPics/Edit.gif" CommandName="Edit"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton4" runat="server" Text="Delete" CausesValidation="False" ImageUrl="~/Image/UIPics/Delete.gif" CommandName="Delete"></asp:ImageButton>
</itemtemplate>
                    <headerstyle wrap="False" />
                </asp:TemplateField>
                <asp:BoundField DataField="TId" HeaderText="编号" SortExpression="TId" />
                <asp:BoundField DataField="TrainModeName" HeaderText="模式名称" SortExpression="TrainModeName" />
            </Columns>
        </InfoLight:WebGridView>
</asp:Content>

